package com.dingwen.frame.dto;

import lombok.*;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * base dto 解决List<T> 验证时泛型失效的问题，对集合中的实体进行验证
 *
 * @author dingwen
 * @date 2021.06.30 15:01
 * @since 1.0.0-SNAPSHOT
 */
@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BaseDto<T> implements Serializable {
    private static final long serialVersionUID = 2008639624484233118L;

    @Valid
    private List<T> tList;

}
